package com.dragonsky.shop.order.controller;

import com.dragonsky.shop.common.utils.AjaxResult;
import com.dragonsky.shop.order.domain.vo.OrderNaCosVo;
import com.dragonsky.shop.order.service.OrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author dragon
 * @since 2025-03-22 00:18:05
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Resource
    private OrderService orderService;


    @GetMapping("/getNaCosConfig")
    public AjaxResult<OrderNaCosVo> getNaCosConfig() {
        return orderService.getNaCosConfig();
    }

    @GetMapping("/seata")
    public AjaxResult<Void> seata() {
        return orderService.seata();
    }

}
